﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            //var endPoint = new EndpointAddress("https://172.16.0.153/TanzimBasvuruWSDL/BasvuruDurumServisi");
            //var bindind = new BasicHttpBinding
            //{
            //    Name = "basicBinding",
            //    CloseTimeout = TimeSpan.FromMinutes(1.0),
            //    HostNameComparisonMode = HostNameComparisonMode.StrongWildcard,
            //    MessageEncoding = WSMessageEncoding.Text,
            //    MaxReceivedMessageSize = 65536000,
            //    MaxBufferPoolSize = 65536000,
            //    UseDefaultWebProxy = true,
            //    AllowCookies = false,
            //    BypassProxyOnLocal = false,
            //    Security =
            //    {
            //        Mode = BasicHttpSecurityMode.Transport,
            //        Transport =
            //        {
            //            ClientCredentialType = HttpClientCredentialType.None,
            //            ProxyCredentialType = HttpProxyCredentialType.None
            //        },
            //        Message =
            //        {
            //            ClientCredentialType = BasicHttpMessageCredentialType.UserName
            //        }
            //    }
            //};
            ////ServiceReference1.PersonalizationWSIntClient clntx = new ServiceReference1.PersonalizationWSIntClient(bindind, endPoint);
            ////ServiceReference1.PersonalizationWSIntClient clntx = new ServiceReference1.PersonalizationWSIntClient();
            ////ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
            ////ServiceReference1.wsResult res = clntx.updatePaket(250, Guid.NewGuid().ToString(), new long[] { 2088, 2089, 2091, 2096, 2098, 2099, 2100, 2101, 2102, 2105 });

            ////ServiceReference2.BasvuruDurumServisClient clntx2 = new ServiceReference2.BasvuruDurumServisClient(bindind, endPoint);
            //ServiceReference2.BasvuruDurumServisClient clntx2 = new ServiceReference2.BasvuruDurumServisClient();
            //ServiceReference2.BasvuruDurumGuncellemeRequest objx = new ServiceReference2.BasvuruDurumGuncellemeRequest();
            //ServiceReference2.BasvuruDurumResult x = new ServiceReference2.BasvuruDurumResult();
            //ServiceReference2.BasvuruDurumBilgi
            //ServiceReference2.Sonuc y = new ServiceReference2.Sonuc();
            //ServiceReference2.TeslimListesiRequest z = new ServiceReference2.TeslimListesiRequest();

            //ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
            //ServiceReference2.TeslimListesiRequest obj = new ServiceReference2.TeslimListesiRequest();
            //obj.GrupId = Guid.NewGuid();
            //obj.MuracaatIdList = new string[] { "86a2d314-1a96-47cd-9337-5d62e518730b", "4d5c25d8-4bf5-4bce-9897-8c1db3d5c843", "cc7716b1-fc60-4142-97e5-65bc8fc1ee62", 
            //    "4e5634e4-02fe-4186-b4f6-e4c6da7cef58", 
            //    "fe85f433-15f9-46d4-86bb-139d8c5a2c64", 
            //    "9fa42670-f61a-472b-9c3f-2ac75c95bea5", 
            //    "11af842c-9aa2-4cd6-a1ce-46468831cf18", 
            //    "e3b2dac6-f1a8-4705-bc61-56c8da52ae9a",
            //    "c8dd344c-48c2-4dc4-90a5-bc52e9b96d52", 
            //    "50e1184b-7f61-4320-af6e-ec3ac2fa0665" };
            //bool resx = clntx2.TeslimListesiBildir(obj);
            ////ServiceReference3.BasvuruDurumClient clntx = new ServiceReference3.BasvuruDurumClient();
            
            ////ServiceReference3.BasvuruDurumBilgi[]  obja= new ServiceReference3.BasvuruDurumBilgi[1];
            ////ServiceReference3.BasvuruDurumBilgi de=new ServiceReference3.BasvuruDurumBilgi();
            ////bool res = clntx.ServisTest();
            ////Guid g = new Guid("685899b0-383d-4020-870b-fd8e0e5e4441");
            ////de.MuracaatIdField = g;
            ////de.KartSeriNoField = "Y001104";
            ////obja[0] = de;
            ////ServiceReference3.BasvuruDurumGuncellemeRequest objx = new ServiceReference3.BasvuruDurumGuncellemeRequest();
            ////objx.BasvuruDurumKodField = ServiceReference3.KodBasvuruDurum.BasvuruVerisindeHata;
            ////objx.BasvuruDurumBilgisiListField = obja;
            ////ServiceReference3.BasvuruDurumResult x = clntx.DurumBildir(objx);
            ////objx.BasvuruDurumBilgisiListField=new ServiceReference3.BasvuruDurumBilgi[2](){new ServiceReference3.BasvuruDurumBilgi(){KartSeriNoField="Y001104",MuracaatIdField}}

            //string a = "";

            //EntityDiagrams1 obj = new EntityDiagrams1();
            string a = Guid.NewGuid().ToString();
        }
    }
}
